// 类创建对象 
class City {
  cname: string
  clevel: number
  constructor(cName: string, cLevel: number) {
    this.cname = cName
    this.clevel = cLevel
    // 类型“City”上不存在属性“chello”
    // this.chello = 'dd'
  }
  about() {
    console.log(`hello${this.cname}`)
  }
}

let c1 = new City('P', 1)
console.log(c1.cname)
c1.about()

export {}